import request from '@/utils/request'

// 查询项目清仓列表
export function listProjectClearance(query) {
  return request({
    url: '/purchase/projectClearance/list',
    method: 'get',
    params: query
  })
}

// 查询项目清仓详细
export function getProjectClearance(id) {
  return request({
    url: '/purchase/projectClearance/' + id,
    method: 'get'
  })
}

// 新增项目清仓
export function addProjectClearance(data) {
  return request({
    url: '/purchase/projectClearance',
    method: 'post',
    data: data
  })
}

// 修改项目清仓
export function updateProjectClearance(data) {
  return request({
    url: '/purchase/projectClearance',
    method: 'put',
    data: data
  })
}

// 删除项目清仓
export function delProjectClearance(id) {
  return request({
    url: '/purchase/projectClearance/' + id,
    method: 'delete'
  })
}
